pull: Stay in mainloop if we're synchronously fetching URI
authorColin Walters <walters@verbum.org>
Tue, 29 Apr 2014 13:00:21 +0000 (09:00 -0400)
committerColin Walters <walters@verbum.org>
Tue, 29 Apr 2014 14:59:57 +0000 (10:59 -0400)
The static deltas work will be doing some synchronous fetching even
after refs are downloaded.

src/libostree/ostree-repo-pull.c

index 363c2fef454fef5cc5ec9d822fc535c565e31d74..0d9eaf8bbe1e6d7942051647d6ce06f0c1944b9b 100644 (file)
@@ -203,7 +203,7 @@ check_outstanding_requests_handle_error (OtPullData          *pull_data,
         g_main_loop_quit (pull_data->loop);
       break;
     case OSTREE_PULL_PHASE_FETCHING_OBJECTS:
-      if (current_idle)
+      if (current_idle && !pull_data->fetching_sync_uri)
         {
           g_debug ("pull: idle, exiting mainloop");